pubdir=$1
appdir=$2
md5location=$3






find $pubdir -name '*.*' | while read ln; do

b=${ln/`echo $pubdir/`/''}
orgmd5=`cat $md5location | grep $b | awk '{print $1}'`
destmd5=`md5sum $ln | awk '{print $1}'`

#echo [ "$orgmd5" -eq "$destmd5" ]
#cat $md5location

done




yes | cp -rp $pubdir/* $appdir/


